<!-- input type="file" id="Article__packages" name="Article[_packages]"-->
<div id='<? echo $this->id; ?>'>
	<?php if(!empty($data)): ?>
	<?php foreach($data as $k=>$e): 
		if(!isset($e['id'])) continue;
	?>
	<div class='EUpload2-container'>
		<input type='text' name='<?php echo get_class($model); ?>[<?php echo $this->id; ?>][<?php echo $k; ?>][<?php echo $this->options['label_name']; ?>]' value='<?php echo $e['title']; ?>' size=25 />
		<input type='hidden' name='<?php echo get_class($model); ?>[<?php echo $this->id; ?>][<?php echo $k; ?>][id]' value='<?php echo $k; ?>' />
		<input type='button' value='-' class='remove' />
		<?php if(isset($e['url'])) echo CHtml::link(CHtml::image('/images/onw.png'), $e['url'], array('class'=>'no-decoration', 'target'=>'_blank')); ?>
		
	</div>
	<?php endforeach; ?>
	<?php endif; ?>

	<div class='EUpload2-container init' style='display: none;'>
		<input type='text' name='<?php echo get_class($model); ?>[<?php echo $this->id; ?>][][<?php echo $this->options['label_name']; ?>]' size=25 />
		<input type='file' name='<?php echo get_class($model); ?>[<?php echo $this->id; ?>][]' />
		<input type='button' value='+' class='add' />
		<input type='button' value='-' class='remove' />
	</div>

	<div class='EUpload2-init'>
		<input type='text' name='<?php echo get_class($model); ?>[<?php echo $this->id; ?>][0][<?php echo $this->options['label_name']; ?>]' title='Название' size=25 />
		<input type='file' name='<?php echo get_class($model); ?>[<?php echo $this->id; ?>][0]' title='Файл, тип: <?php echo $this->options['filetypes']; ?>' />
		<input type='button' value='+' class='add' />
	</div>
</div>